package com.example.take_out_admin.exception;

public enum ResponseEnum {
    UNKOWN_ERROR(88888,"未知错误"),
    SUCCESS(20001,"请求成功"),
    INVALID_REQUEST(40001, "请求无效"),
    NOT_FOUND(40401, "资源未找到"),
    INTERNAL_SERVER_ERROR_USERNOTFOUND(50001, "用户名或密码错误");

    private final int code;
    private final String message;

    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}